# 6.6
favorite_language = {
    'zhangsan': 'python',
    'lisi': 'c',
    'wangwu': 'ruby',
    'zhaoliu': 'python',
    }
for name,language in favorite_language.items():
    print(f"{name.title()}'s favorite language is {language.title()}")

print('\n')
coders = ['wangwu', 'zhangsan', 'chener', 'sunqi', 'zhengshi', 'lisi', 'zhaoliu']
for coder in coders:
    if coder in favorite_language.keys():
        print(f"Thank you for taking the investigation, {coder.title()}")
    else:
        print(f"{coder.title()}, what's your favorite programming language?")

 